package com.depay.mapper;

import java.math.BigInteger;
import java.util.List;

import com.depay.mapper.model.GoldTransaction;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author xieyueshu 2019/1/31
 */
@Mapper
public interface GoldTransactionMapper {

    Integer insert(@Param("txn") GoldTransaction txn);

    Integer update(@Param("list") List<GoldTransaction> list);

    BigInteger sumBalance(@Param("address") String address);
    
    //获得确认区块的最后高度，存在于现有记录中的block_number中的最高一个
    Long confirmLastBlockNumber();
    
}
